package com.xxx.demo2;
import com.xxx.demo.Animal1;

public class Test2 {

    public static void func(Animal1 animal) {
        animal.eat();
    }
    public static void main(String[] args) {
        Cat cat = new Cat();
        func(cat);
    }

}
